home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / www / src / midaswww-1.0 / SGMLHyper.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-16  |  2.7 KB  |  86 lines

  1. /*==================================================================*/
  2. /*                                                                  */
  3. /* SGMLHyperWidget                                                  */
  4. /*                                                                  */
  5. /* B.Raoult (mab@ecmwf.co.uk)                              Oct.91   */
  6. /* T.Johnson - added SGML facilities                      June.92   */
  7. /*             (Tony Johnson)                                       */
  8. /*                                                                  */
  9. /* Hyper text like widget.                                          */
  10. /*                                                                  */
  11. /*==================================================================*/
  12.  
  13. #ifndef  SGMLHYPER_H
  14. #define  SGMLHYPER_H
  15.  
  16. /* 
  17.     If you define MOTIF, the widget will inherit proprieties 
  18.    from the XmManager class : Help Callback, user data, ...
  19. */
  20.  
  21. /*
  22. #define MOTIF
  23. */
  24.  
  25.  
  26. extern WidgetClass sGMLHyperWidgetClass;
  27. typedef struct _SGMLHyperRec      * SGMLHyperWidget;
  28.  
  29. /*
  30.  * Define resource strings for the Hyper widget.
  31.  */
  32.  
  33. #define SGMLNzoomEffect        "zoomEffect"
  34. #define SGMLCZoom              "Zoom"
  35. #define SGMLNopenTag           "openTag"
  36. #define SGMLNcloseTag          "closeTag"
  37. #define SGMLNendTag            "endTag"
  38. #define SGMLNparameterTag      "parameterTag"
  39. #define SGMLCTagChar           "TagChar"
  40. #define SGMLNzoomSpeed         "zoomSpeed"
  41. #define SGMLCZoomSpeed         "ZoomSpeed"
  42. #define SGMLNcacheSize         "cacheSize"
  43. #define SGMLCCacheSize         "CacheSize"
  44. #define SGMLNmargin            "margin"
  45. #define SGMLNnaturalWidth      "naturalWidth"
  46. #define SGMLCWidth             "Width"
  47. #define SGMLNcaseSensitiveTags "caseSensitiveTags"
  48. #define SGMLCCaseSensitiveTags "CaseSensitiveTags"
  49.  
  50. /*
  51.   Callback structure
  52. */
  53.  
  54. #define SGMLHYPER_REASON 1
  55.  
  56. typedef struct {
  57.  
  58.     int     reason;   /* always = SGMLHYPER_REASON                        */
  59.     XEvent *event;    /* event                                            */
  60.     char   *text;     /* pointer on highlighted text selected (read only) */
  61.     int     length;   /* length of selected text                          */
  62.     char   *hidden;   /* pointer to hidden text */
  63.     int     hidden_length;
  64.  
  65. }  SGMLHyperCallbackStruct;
  66.  
  67.  
  68. Widget  CreateSGMLHyper();
  69. Widget  SGMLHyperLoadFile();
  70. Widget  SGMLHyperSetText();
  71. Widget  SGMLHyperLoadText();
  72.  
  73. #ifdef _NO_PROTO
  74.   void    SGMLHyperSetTags();
  75.   char    *SGMLHyperGetText();
  76.   void    SGMLHyperDeclareClass();
  77. #else
  78.   void    SGMLHyperSetTags();
  79.   char    *SGMLHyperGetText();
  80.   void    SGMLHyperDeclareClass();
  81. #endif  
  82.  
  83. #define SGMLIsHyper(w)     XtIsSubclass(w,sGMLHyperWidgetClass)
  84.  
  85. #endif SGMLHYPER_H
  86.